import 'package:freezed_annotation/freezed_annotation.dart';

import 'user_info_model.dart';

part 'login_respose_model.freezed.dart';
part 'login_respose_model.g.dart';

@freezed
class LoginResposeModel with _$LoginResposeModel {
  factory LoginResposeModel({
    bool? isFirstRegister,
    String? token,
    String? userServiceAccountId,
    String? rck,
    String? ver,
    String? tongcloudToken,
    @Default(false) bool autoTranslate,
    @JsonKey(name: 'userInfo') UserInfoModel? userInfoModel,
    @JsonKey(name: 'google_translation_key') String? googleTranslationKey,
  }) = _LoginResposeModel;

  factory LoginResposeModel.fromJson(Map<String, dynamic> json) =>
      _$LoginResposeModelFromJson(json);
}
